package com.lagou.bean;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 配置对象,存放sqlMapConfig.xml解析出来的信息
 */
public class Configuration {
    private DataSource dataSource;
    private Map<String, MapperStatement> mappers = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMappers() {
        return mappers;
    }

    public void setMappers(Map<String, MapperStatement> mappers) {
        this.mappers = mappers;
    }
}
